import layout from '@/layout/index'
const jobRouter = [
  {
    path: '/job',
    component: layout,
    isParent: true,
    redirect: '/job/list',
    meta: {
      title: '岗位',
      icon: 'task'
    },
    children: [
      {
        path: '/job/list',
        component: () => import('@/views/job/list/index'),
        meta: {
          title: '岗位管理',
          icon: 'task'
        }
      },
      {
        path: '/job/apply',
        component: () => import('@/views/job/apply/index'),
        meta: {
          title: '申请管理',
          icon: 'task'
        }
      },
      {
        path: '/job/user',
        component: () => import('@/views/job/applicant/index'),
        meta: {
          title: '用户管理',
          icon: 'task'
        }
      }
    ]
  },
  {
    name: '岗位创建',
    path: '/job/create',
    component: () => import('@/views/job/form/index'),
    meta: {
      title: '岗位创建'
    }
  },
  {
    name: '岗位编辑',
    path: '/job/edit/:id',
    component: () => import('@/views/job/form/index'),
    meta: {
      title: '岗位编辑'
    }
  }
]
export default jobRouter
